package com.cyanite.playlv2api.parsers.json;

import com.cyanite.playlv2api.types.VenueCategory;
import org.json.JSONException;
import org.json.JSONObject;

public class VenueCategoryParser extends AbstractParser<VenueCategory> {

    @Override
    public VenueCategory parse(JSONObject json) throws JSONException {

        VenueCategory obj = new VenueCategory();
        if (json.has("task_id")) {
            obj.setId(json.getInt("task_id"));
        }
        return obj;
    }
}